VENV := .venv
VENV_BIN := $(VENV)/bin

setup:
	sudo apt install python3.10-venv
	python3.10 -m venv $(VENV)
	chmod u+x $(VENV_BIN)/activate
	. $(VENV_BIN)/activate; \
		pip install -U pip setuptools; \
		pip install poetry; \
		poetry install --no-root; \
		ansible-galaxy install -r ./requirements.yml

bootstrap:
	poetry run ansible-playbook ./bootstrap.yml --ask-become-pass $(ARGS)

lint:
	yamllint .
	ansible-lint --fix


